Conversation
✅ Deploy Preview for testcontainers-node ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
Hi @digital88, thanks for raising the PR, but it is very similar to #905. The other PR is a bit further progressed, e.g it updates the docs, and the testcontainer interface. It looks like both PRs are now failing for the same reason, some difference with the container name. Instead of asserting the container name does or does not exist, is it not possible to assert the container IDs? That should resolve any inconsistency with whether the name is prefixed with Would it be possible for you to collaborate on PR #905 instead of creating a new one? |
Yes, I'll look into it.
Yes, I was thinking about using container id too. Will try this idea in PR #905 |
|
See #939 |
Related issue #850
Add withRemove() method to GenericContainer and tests. This allows to control autoremoval behaviour of a container.
Containers are removed by default if
removeoption is not set when container is being stopped.withRemove(true)produces the same effect as explicitly setting remove flag when stopping container.withRemove(false)disables removing container by default.container.stop()options have higher priority thanwithRemove()Keep in mind that Ryuk will remove stopped container after tests finished regardless of value passed in
withRemovemethod, unless Ryuk is disabled. SettingwithRemove(false)and disabling Ryuk is not recommeded.